﻿using System;

namespace Delphi.Mimir.Data.Entities.Final {
    public class OrderExecution {
        public int OrderExecutionId { set; get; }
        public int OrderId { set; get; }
        public virtual Order Order { set; get; }
        //public int ManagedProductPositionId { set; get; }
        //public virtual ManagedProductPosition ManagedProductPosition { set; get; }
        public DateTime ExecutionDate { set; get; }
        public int Quantity { set; get; }
        public bool PartialExecution { set; get; }
        public Decimal Quote { set; get; }
        public Decimal Fees { set; get; }
        public Decimal NetAmount {
            get {
                return Quote * Quantity;
            }
        }
        public Decimal TotalAmount {
            get {
                return NetAmount + Fees;
            }
        }
    }
}
